<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="java.security.Principal"%>
<%@ page import="com.conversationboard.model.StyleSheets"%>
<%@ page import="com.conversationboard.view.MainMenu"%>
<%@ page import="com.conversationboard.tree.Folders"%>
<%@ page import="com.conversationboard.model.User"%>

<%
	Principal principal = request.getUserPrincipal();
	User user = User.get(principal);
	String treeDrawing = Folders.getInstance().drawTree(user, false);

	request.setAttribute("treeDrawing", treeDrawing);
	request.setAttribute("user", user);
%>

<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>Board Structure</title>
	<link rel="stylesheet"title="Conversation Board" type="text/css" href="${contextPath}/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
</head>

<body>

	<%= MainMenu.display(principal) %>

	<div class="headingblock">
		<h1>Board Structure</h1>
	</div>

	<div class="mainblock">
		<div class="formsectionlight">
			<pre>${treeDrawing}</pre>
		</div>
	</div>

	<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
	<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 

</body>
</html>